<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>历史对局信息</title>
 
</head>
<body>
    <div id="div">
    </div>
    <!-- <button>我是按钮</button> -->
    <script src="js/myjs.js"></script>
    <script src="js/jquery-2.1.0.min.js"></script>
    <script>
        game.GetUserid();
        let num = game.showlist();
        t = document.getElementById('div');
        var count=num.length/4;
        console.log(count+"sadasd");
        var index=0;
        for(var i=0;i<count;i++)
        {
            var oA = document.createElement("a"); //创建a标签
            oA.href = "http://101.35.110.87:8082/Historicalgames.html?room_id="+num[index]; //添加 href 属性   
            oA.innerHTML="房间号: "+num[index++]+"  玩家:"+num[index++]+"VS"+num[index++]+"   Winner:"+num[index++];
            t.appendChild(oA);
            var oB=document.createElement("br"); //创建a标签
            t.appendChild(oB);
        }
        

    </script>
</body>
</html>